package com.advertisementsystem.Servie;

import com.advertisementsystem.Dto.AdvertisementDTO;
import com.advertisementsystem.entity.Advertisement;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public interface AdvertisementService {
    void createAdvertisement(AdvertisementDTO dto);
    void updateAdvertisement(Long id, AdvertisementDTO dto);
    void deleteAdvertisement(Long id);

    Advertisement getAdvertisementDetail(Long id);
    void approveAdvertisement(Long id);
    void rejectAdvertisement(Long id);

    Page<Advertisement> getAdvertisementsByUserId(Long userId, Integer pageNum, Integer pageSize, String title, Integer status, String startDate, String endDate,Integer type);

    Page<Advertisement> getAdvertisementList(Integer pageNum, Integer pageSize, String keyword, String status, String budget, String sort,Integer type);
}